package zouran.service;

import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;
import zouran.entity.Estimate;

import java.util.Map;

/**
 * Author：zouran
 * Date：2023/3/31  20:55
 * Description:
 */
@Transactional
public interface EstimateService {
    double getPopulation(@Param("minLongitude") Double minLongitude, @Param("maxLongitude") Double maxLongitude, @Param("minLatitude") Double minLatitude, @Param("maxLatitude") Double maxLatitude);

    Estimate getEstimateResultByEarthquakeId(@Param("earthquakeId") long earthquakeId);

    Double getPointIntensity(Long earthquakeId, Double longitude, Double latitude);

    double getPopulationScope(Map<String, Double> scope);
}

